/* 菜单管理页面样式 */
.menuPage {
  padding: 0 24px;
  background-color: #f5f5f5;
  min-height: 100vh;
}

.pageHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0 16px 0;
}

.pageTitle {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #262626;
}

.pageDescription {
  margin: 4px 0 0 0;
  color: #666;
  font-size: 14px;
}

.toolbarCard {
  margin-bottom: 16px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid #f0f0f0;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.toolbarLeft {
  display: flex;
  align-items: center;
  gap: 8px;
}

.toolbarRight {
  display: flex;
  align-items: center;
  gap: 12px;
}

.divider {
  height: 24px;
  width: 1px;
  background-color: #d9d9d9;
}

.selectedInfo {
  color: #666;
  font-size: 14px;
}

.selectedCount {
  color: #1890ff;
  font-weight: 500;
}

.tableCard {
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid #f0f0f0;
  overflow: hidden;
}

/* 表格行样式 */
:global(.menu-table-row) {
  transition: all 0.2s ease;
}

:global(.menu-table-row:hover) {
  background-color: #f5f5f5 !important;
}

/* 表格头部样式 */
:global(.ant-table-thead > tr > th) {
  background-color: #fafafa !important;
  font-weight: 600 !important;
  color: #262626 !important;
  border-bottom: 2px solid #f0f0f0 !important;
}

/* 表格边框优化 */
:global(.ant-table-tbody > tr > td) {
  border-bottom: 1px solid #f5f5f5 !important;
}

:global(.ant-table-tbody > tr:last-child > td) {
  border-bottom: none !important;
}

/* 按钮样式优化 */
.actionButton {
  border-radius: 6px;
  transition: all 0.2s ease;
}

.actionButton:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 模态框样式 */
:global(.menu-modal .ant-modal-header) {
  background-color: #fafafa !important;
  border-bottom: 1px solid #f0f0f0 !important;
  border-radius: 8px 8px 0 0 !important;
  padding: 16px 24px !important;
}

:global(.menu-modal .ant-modal-body) {
  padding: 24px !important;
}

:global(.menu-modal .ant-modal-content) {
  border-radius: 8px !important;
  overflow: hidden !important;
}

/* 标签样式 */
.statusTag {
  border-radius: 4px;
  font-size: 12px;
  padding: 2px 8px;
  border: none;
  font-weight: 500;
}

/* 头像样式 */
.menuAvatar {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

/* 响应式设计 */
@media (max-width: 1200px) {
  .menuPage {
    padding: 0 16px;
  }
  
  .pageHeader {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .toolbar {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }
  
  .toolbarLeft,
  .toolbarRight {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .menuPage {
    padding: 0 12px;
  }
  
  .pageTitle {
    font-size: 18px;
  }
  
  .toolbarLeft {
    flex-wrap: wrap;
    gap: 6px;
  }
  
  .toolbarRight {
    flex-wrap: wrap;
    gap: 6px;
  }
}

/* 加载状态样式 */
.loadingOverlay {
  position: relative;
}

.loadingOverlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.8);
  z-index: 10;
  border-radius: 8px;
}

/* 空状态样式 */
.emptyState {
  padding: 48px 24px;
  text-align: center;
  color: #999;
}

.emptyIcon {
  font-size: 48px;
  color: #d9d9d9;
  margin-bottom: 16px;
}

.emptyText {
  font-size: 16px;
  margin-bottom: 8px;
}

.emptyDescription {
  font-size: 14px;
  color: #bfbfbf;
}
